#!/usr/bin/env python
# encoding: utf-8
"""
    @author:水痕
    @time:2018-09-10 16:05:38
    @email:332904234@qq.com
    @version:1.0
    @fileName:forms.py
    @describe:
"""

from django import forms


class ArticleForms(forms.Form):
    """
    定义修改与新增文章的form
    """
    title = forms.CharField(required=True, error_messages={'required': '文章标题必填'})
    content = forms.CharField(required=True, error_messages={'required': '文章内容不能为空'})
    category = forms.CharField(required=True, error_messages={'required': '文章分类不能为空'})
    type = forms.CharField(required=True, error_messages={'required': '文章类别不能为空'})
